<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/**
 * 测试
 */
class TestTest{
	private $redis;
	protected $ci;
	
	function __construct(){
		$this->ci = & get_instance();

		//链接redis
		$this->ci->load->driver('cache');
		$this->ci->cache->redis->is_supported();
		$this->redis = $this->ci->cache->redis;

	}

	public function flushUserCache($uid){
		$rs = $this->redis->getClient()->delete("USERINFO|$uid");
		echo "flushUserCache="."USERINFO|$uid";
		var_dump($rs);
		echo "\n";
	}


}